{template admin/head}
<body>
<div class="wrapper">
	<div class="crumbs"><a href="{SITE_URL}admin.php?a={$action}">产品统计</a> &gt; <span>产品列表</span> </div>
	
	<div class="container_tit clearfix mb20 ft14">
		
	<form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
		<input type="hidden" name="type" value="1" />
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="{if $parm[type]=='1'}btnblue{else}btnyellow{/if} mr15" value="昨天">
        </div>
    </form>
    
    <form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
		<input type="hidden" name="type" value="2" />
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="{if $parm[type]=='2'}btnblue{else}btnyellow{/if} mr15" value="今天">
        </div>
    </form>
    
    <form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
		<input type="hidden" name="type" value="3" />
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="{if $parm[type]=='3'}btnblue{else}btnyellow{/if} mr15" value="前三天">
        </div>
    </form>
    
    <form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
		<input type="hidden" name="type" value="4" />
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="{if $parm[type]=='4'}btnblue{else}btnyellow{/if} mr15" value="前一周">
        </div>
    </form>
    
    <form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
		<input type="hidden" name="type" value="5" />
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="{if $parm[type]=='5'}btnblue{else}btnyellow{/if} mr15" value="前一个月">
        </div>
    </form>
	
	<form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
		<input type="hidden" name="type" value="6" />
		<div class="btn_box fl">
			<span>选择时间段</span>
    		<input type="text" class="w200 text" style="width:200px;" class="text" format='time' name='start' id="start" value="{$parm['start']}" placeholder="请输入日期">
			<span>至</span>
			<input type="text" class="mr15 w200 text" style="width:200px;" class="text" format='time' name='end' id="end" value="{$parm['end']}" placeholder="请输入日期">
        </div>
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="{if $parm[type]=='6'}btnblue{else}btnyellow{/if} mr15" value="搜索">
        </div>
    </form>
   </div>
	<!-- list -->
	<table class="table">
		<thead>
			<tr class="bg_h_1">
				<th width="">产品名称</th>
				<th width="">详情页访问PV</th>
				<th width="">详情页访问UV</th>
				<th width="">用户投资金额</th>
				<th width="">用户返利金额</th>
            	<th width="">操作</th>
			</tr>
		</thead>
		<tbody>
		<!--{loop $list $key $one}-->
			<tr>
				<td style="text-align: center;">{$one['name']}</td>
				<td style="text-align: center;">{$one['tongji']['pv']}</td>
				<td style="text-align: center;">{$one['tongji']['uv']}</td>
				<td style="text-align: center;">{$one['tongji']['touzi']}</td>
				<td style="text-align: center;">{$one['tongji']['fanli']}</td>
				<td style="text-align: center;">
					<a class="btn_look" href="{SITE_URL}admin.php?a={$action}&m=detail&pid={$one[id]}"  title="查看详情">查看详情</a>
				</td>
			</tr>
		<!--{/loop}-->
		</tbody>
	</table>
</div>


{template admin/foot}